import { IconArrowFall, IconArrowRise } from '@arco-design/web-react/icon';
import React from 'react';

const DynamicArrow = (props: { o1: number, o2: number }) => {
  return (
    props.o1 == props.o2
      ? <></>
      : props.o1 > props.o2 ? <IconArrowRise style={{ color: '#ee4d38' }} /> :
        <IconArrowFall style={{ color: '#00b534' }} />
  );
};

export default DynamicArrow;
